//
//  ContextModel.h
//  Depressed.domo
//
//  Created by rimi on 16/6/1.
//  Copyright © 2016年 薛涛. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
@interface ContextModel : NSObject
// coredata 上下文
@property(nonatomic,strong)NSManagedObjectContext  *context;
@property (nonatomic, strong) NSMutableArray *dataSourceArrM;
@property (nonatomic, strong) NSMutableArray *fetchArrM;

+ (ContextModel *)shareContextModel;

//** 初始化上下文 **
- (void)initWithContext;


//** 增 **
- (void)insertContextObject:(NSString *)nameField ageField:(NSString *)ageField;
//** 删 **
- (void)deleteContextObject:(NSManagedObject *)object;
//** 改 **

//** 得到SQL数据源 (查)**
- (void)getWithDataSourceArrM;
@end
